combo_box: Use mnemonic_activate on override
authorMaximiliano Sandoval R <msandova@gnome.org>
Sun, 3 Oct 2021 16:00:23 +0000 (18:00 +0200)
committerMaximiliano Sandoval R <msandova@gnome.org>
Wed, 3 Nov 2021 23:48:05 +0000 (00:48 +0100)
This is changing the existing behavior where the mnemonic activation
would just grab the focus of the button, this was the behavior in GTK 3.

gtk/gtkcombobox.c

index f007d841f9732f26e19922c0d04ab1cc9375c531..c29896319eaa99c0f705fa4421f9b9bbdd0a5c2f 100644 (file)
@@ -2304,7 +2304,7 @@ gtk_combo_box_mnemonic_activate (GtkWidget *widget,
         gtk_widget_grab_focus (priv->child);
     }
   else
-    gtk_widget_grab_focus (priv->button);
+    gtk_widget_mnemonic_activate (priv->button, group_cycling);
 
   return TRUE;
 }